package com.vf.admin.platform.entity;


import com.vf.admin.common.db.annotation.Column;
import com.vf.admin.common.db.annotation.NoColumn;
import com.vf.admin.common.db.annotation.Table;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.Serializable;
import java.util.List;

/**
 * 平台基础菜单
 */

@Table(name="bt_menu")
public class Menu implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(length=11,name="id",index=true)
    private Integer id;//编号
    private String title;//菜单名称
    private Integer pid;//上级id
    private String links;//菜单资源地址
    private Integer sorts;// 排序值
    private Integer states; //是否启用状态：1、是  2、否
    private String comments;//备注
    private String icon;//菜单图标


    //关联字段
    @NoColumn
    private String pname;//上级菜单名称
    @NoColumn
    public List<Menu> children;//子菜单集合
    @NoColumn
    public List<Menu> list;//子菜单集合
    @NoColumn
    public Boolean checked;//是否拥有当前菜单权限

    @NoColumn
    public Boolean spread; //该节点默认展开

    @NoColumn
    public String jump;//管理界面左侧菜单的地址url

    @NoColumn
    public List<Element> elementList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLinks() {
        return links;
    }

    public void setLinks(String links) {
        this.links = links;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public List<Menu> getChildren() {
        return children;
    }

    public void setChildren(List<Menu> children) {
        this.children = children;
    }

    public Integer getSorts() {
        return sorts;
    }

    public void setSorts(Integer sorts) {
        this.sorts = sorts;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Boolean getSpread() {
        return spread;
    }

    public void setSpread(Boolean spread) {
        this.spread = spread;
    }

    public String getJump() {
        return jump;
    }

    public void setJump(String jump) {
        this.jump = jump;
    }

    public List<Menu> getList() {
        return list;
    }

    public void setList(List<Menu> list) {
        this.list = list;
    }

    public List<Element> getElementList() {
        return elementList;
    }

    public void setElementList(List<Element> elementList) {
        this.elementList = elementList;
    }

}
